package com.zb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Author WEN
 * @Date 2023/8/24 0024
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("编码参数信息")
public class CodeParamInfo {

    @ApiModelProperty(value = "批次编码ID")
    private Long codeBatchId;

    @ApiModelProperty(value = "编码来源")
    private Integer codeSource;

    @ApiModelProperty(value = "是否临时编码：false-不是，true-是")
    private boolean temporary;

    @ApiModelProperty(value = "编码类型：1-成品、2-备件")
    private Integer type;

    @ApiModelProperty(value = "编码规格前缀")
    private String codePrefix;

    @ApiModelProperty(value = "编码规则：1-六位产品生产日期，2-八位防伪码，3-六位随机防窜码")
    private String codeRule;

    @ApiModelProperty(value = "仓储编码前缀")
    private String storehousePrefix;

    @ApiModelProperty(value = "仓储编码规则：1-六位产品生产日期，2-八位防伪码，3-八位随机防窜码")
    private String storehouseRule;

    @ApiModelProperty(value = "产品生产日期")
    private Date date;

    @ApiModelProperty(value = "编码是否来源工单")
    private boolean codeFromOrder = Boolean.FALSE;

    @ApiModelProperty(value = "是否出库创建编码：false-否，true-是")
    private boolean outStore = Boolean.FALSE;

    @ApiModelProperty(value = "是否入库创建编码：false-否，true-是")
    private boolean inStore = Boolean.FALSE;

    @ApiModelProperty(value = "出入库单号")
    private String OutInBoundNo;

    @ApiModelProperty(value = "编码用户登记对象")
    private CodeUserRegisterVo codeUserRegister;

    @ApiModelProperty(value = "是否提交事件，默认提交")
    private boolean syncCommitTransaction = Boolean.TRUE;

}
